﻿using AntdUI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Lima.ResumeSys.Models
{
    public class Organization : NotifyProperty
    {
        public string ID { get; set; }
        public string Code { get; set; }
        public string OrgName { get; set; }
        public int Sort { get; set; } = 1;
        public string ParCode { get; set; }
        public int IsEnabled { get; set; } = 1;
        public DateTime CreateDatetime { get; set; } // 日期/时间
        public DateTime UpDatetime { get; set; } // 日期/时间
        public string StrUpDatetime { get; set; } // 日期/时间
        private CellLink[] cellLinks;
        public CellLink[] CellLinks
        {
            get { return cellLinks; }
            set
            {
                if (cellLinks == value) return;
                cellLinks = value;
                OnPropertyChanged(nameof(CellLinks));
            }
        }
        //用于设置树形表格，加入自身数组
        private List<Organization> organization;

        public List<Organization> SysOrgs
        {
            get { return organization; }
            set
            {
                if (organization == value) return;
                organization = value;
                OnPropertyChanged(nameof(SysOrgs));
            }
        }

        public class QueryOrganizationModel
        {
            public string ParCode { get; set; }
            public string OrgName { get; set; }

        }
    }
}
